package com.cote.douhahou.pretloan.beans;

import android.text.TextUtils;


public class PermissAkomapalendionInfo {

    private final int iconResId_White;
    private final int iconResId_Gray;
    private final String title;
    private final String text;

    private final String permission;

    private boolean isRead = false;
    private boolean isAlreadyAgree = false;

    private Runnable permissionAgreeRunnable,permissionDenyRunnable;

    public PermissAkomapalendionInfo(int iconResId_White, int iconResId_Gray, String title, String text, String permission) {
        this.iconResId_White = iconResId_White;
        this.iconResId_Gray = iconResId_Gray;
        this.title = title;
        this.text = text;
        this.permission = permission;
    }

    public int get_akomapalendIcon_akomapalendResId_White() {
        return iconResId_White;
    }

    public int getI_akomapalendconResId_G_akomapalendray(){
        return iconResId_Gray;
    }

    public String getT_akomapalenditle() {
        return title;
    }

    public String get_akomapalendText() {
        if (TextUtils.isEmpty(text)) return "";
        return text;
    }

    public String getPe_akomapalendrmission() {
        if (TextUtils.isEmpty(permission)) return "";
        return permission;
    }

    public boolean is_akomapalendRead() {
        return isRead;
    }

    public void set_akomapalendRead(boolean read) {
        isRead = read;
    }

    public void set_akomapalendPermission_akomapalendAgreeRunnable(Runnable permissionAgreeRunnable) {
        this.permissionAgreeRunnable = permissionAgreeRunnable;
    }

    public void permissi_akomapalendonAgreeRun() {
        if (permissionAgreeRunnable!=null) permissionAgreeRunnable.run();
    }

    public void setPermission_akomapalendDenyRunnable(Runnable permissionDenyRunnable) {
        this.permissionDenyRunnable = permissionDenyRunnable;
    }

    public void permissio_akomapalendnDenyRun() {
        if (permissionDenyRunnable!=null) permissionDenyRunnable.run();
    }

    public boolean isAlre_akomapalendadyAgree() {
        return isAlreadyAgree;
    }

    public void setAlre_akomapalendadyAgree(boolean alreadyAgree) {
        isAlreadyAgree = alreadyAgree;
    }

}
